﻿cmake_minimum_required(VERSION 3.31)
project(modbus)

set(CMAKE_CXX_STANDARD 17)

add_executable(modbus
        main.cpp
        ModbusTcpClient.cpp
)

target_include_directories(modbus PUBLIC
        "${CMAKE_SOURCE_DIR}/include"
)

target_link_libraries(modbus PUBLIC
        "${CMAKE_SOURCE_DIR}/lib/libmodbus/modbus.lib"
        ws2_32
        Iphlpapi
)